PDF.co icon

PDF.co

Automate document workflows with OCR, AI invoice parsing, data extraction, conversion, form filling, merging/splitting, and barcode processing. Ideal for invoices, forms, and scanned files.

Fill a PDF Form

AI-generated

Summary

Fill specified form fields in a PDF file retrieved from a given URL and produce a filled PDF as output.

Inputs

  • Authentication (required) — Choose the authentication method to use with PDF.co API: OAuth2 or API Key.
  • PDF URL (required) — The URL of the source PDF file containing form fields to fill.
  • Fields (required) — One or multiple form fields to fill, each defined by the form field name, the text or value to insert (for example 'true' for checkbox or an index for radio boxes), and optional font styling: size, name, bold, italic, underline, strikeout. Also specify the page(s) to apply the field values to.
  • Advanced Options — Optional parameters like custom output file name, callback webhook URL for asynchronous response, output links expiration time in minutes, and custom JSON profiles to control PDF processing settings.

Output shape

a single JSON object containing either the base64-encoded filled PDF data or download links depending on configured options.

The node returns the filled PDF form either as base64 data inline or by providing URLs to download the file. The output can be received via webhook if a callback URL is configured. Output files expire based on the specified expiration time (default 60 minutes). The result format can be customized using JSON profiles.

Examples

Example 1: Fill a PDF form by specifying field names and values with font styling

Set Authentication to OAuth2, provide the PDF URL, add form fields with names and text to fill, optionally styling the font, and receive the filled PDF output.

Links

Discussion